﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Generic.Contract;
using Contract.Business.Entity;

namespace Contract.Business.Filter
{
    //Criado por : Gustavo
    //Data       : 4/9/2012 8:11:45 PM
    public class FESaidaChegada : FilterEntity
    {
        #region Atributos

        private BEVenda _Venda;
        private int? _CodigoVenda;
        private BEFuncionario _Motoboy;
        private int? _CodigoMotoboy;
        private string _HoraSaida;
        private string _HoraChegada;
        #endregion

        #region Propriedades
        public BEVenda Venda
        {
            get
            {
                return this._Venda;
            }
            set
            {
                BEVenda previousValue = this._Venda;
                if ((previousValue == null) || (!previousValue.Equals(value)))
                {
                    this.SendPropertyChanging();
                    this._Venda = value;
                    if (value != null)
                    {
                        this._CodigoVenda = value.Codigo;
                    }
                    else
                    {
                        this._CodigoVenda = default(int);
                    }
                    this.SendPropertyChanged("Venda");
                }
            }
        }

        public int? CodigoVenda
        {
            get
            {
                return this._CodigoVenda;
            }
            set
            {
                if (this._CodigoVenda != value)
                {
                    this.SendPropertyChanging();
                    this._CodigoVenda = value;
                    this.SendPropertyChanged("CodigoVenda");
                }
            }
        }

        public BEFuncionario Motoboy
        {
            get
            {
                return this._Motoboy;
            }
            set
            {
                BEFuncionario previousValue = this._Motoboy;
                if ((previousValue == null) || (!previousValue.Equals(value)))
                {
                    this.SendPropertyChanging();
                    this._Motoboy = value;
                    if (value != null)
                    {
                        this._CodigoMotoboy = value.Codigo;
                    }
                    else
                    {
                        this._CodigoMotoboy = default(int);
                    }
                    this.SendPropertyChanged("Motoboy");
                }
            }
        }

        public int? CodigoMotoboy
        {
            get
            {
                return this._CodigoMotoboy;
            }
            set
            {
                if (this._CodigoMotoboy != value)
                {
                    this.SendPropertyChanging();
                    this._CodigoMotoboy = value;
                    this.SendPropertyChanged("CodigoMotoboy");
                }
            }
        }

        public string HoraSaida
        {
            get
            {
                return this._HoraSaida;
            }
            set
            {
                if (this._HoraSaida != value)
                {
                    this.SendPropertyChanging();
                    this._HoraSaida = value;
                    this.SendPropertyChanged("HoraSaida");
                }
            }
        }

        public string HoraChegada
        {
            get
            {
                return this._HoraChegada;
            }
            set
            {
                if (this._HoraChegada != value)
                {
                    this.SendPropertyChanging();
                    this._HoraChegada = value;
                    this.SendPropertyChanged("HoraChegada");
                }
            }
        }


        #endregion
    }
}
